package demo

import (
	"gin-sns/app/ginframe/response"

	"github.com/gin-gonic/gin"
)

var FormController = newFormController()

func newFormController() *formController {
	return &formController{}
}

type formController struct {
}

func (c *formController) Autocomplete(ctx *gin.Context) {

	response.BuildTpl(ctx, "demo/form/autocomplete").WriteTpl()
}

func (c *formController) Basic(ctx *gin.Context) {
	response.BuildTpl(ctx, "demo/form/basic").WriteTpl()
}

func (c *formController) Button(ctx *gin.Context) {
	response.BuildTpl(ctx, "demo/form/button").WriteTpl()
}

func (c *formController) Cards(ctx *gin.Context) {
	response.BuildTpl(ctx, "demo/form/cards").WriteTpl()
}

func (c *formController) Datetime(ctx *gin.Context) {
	response.BuildTpl(ctx, "demo/form/datetime").WriteTpl()
}

func (c *formController) Duallistbox(ctx *gin.Context) {
	response.BuildTpl(ctx, "demo/form/duallistbox").WriteTpl()
}

func (c *formController) Grid(ctx *gin.Context) {
	response.BuildTpl(ctx, "demo/form/grid").WriteTpl()
}

func (c *formController) Jasny(ctx *gin.Context) {
	response.BuildTpl(ctx, "demo/form/jasny").WriteTpl()
}

func (c *formController) Select(ctx *gin.Context) {
	response.BuildTpl(ctx, "demo/form/select").WriteTpl()
}

func (c *formController) Sortable(ctx *gin.Context) {
	response.BuildTpl(ctx, "demo/form/sortable").WriteTpl()
}

func (c *formController) Summernote(ctx *gin.Context) {
	response.BuildTpl(ctx, "demo/form/summernote").WriteTpl()
}

func (c *formController) Tabs_panels(ctx *gin.Context) {
	response.BuildTpl(ctx, "demo/form/tabs_panels").WriteTpl()
}

func (c *formController) Timeline(ctx *gin.Context) {
	response.BuildTpl(ctx, "demo/form/timeline").WriteTpl()
}

func (c *formController) Upload(ctx *gin.Context) {
	response.BuildTpl(ctx, "demo/form/upload").WriteTpl()
}

func (c *formController) Validate(ctx *gin.Context) {
	response.BuildTpl(ctx, "demo/form/validate").WriteTpl()
}

func (c *formController) Wizard(ctx *gin.Context) {
	response.BuildTpl(ctx, "demo/form/wizard").WriteTpl()
}
